
$.ZTE = function () {
	$.extend({}, $.ZTE.Core, $.ZTE.Base, $.ZTE.Logger);
};
$.ZTE.Core = {Request:{QueryString:function (g) {
	try {
		var b = "";
		if (document.location.search == "") {
			return b;
		}
		var a = document.location.search.substring(1, document.location.search.length);
		if (a.length == 0) {
			return params;
		}
		a = a.replace(/\+/g, " ");
		for (var e = a.split("&"), d = 0; d < e.length; d++) {
			var c = e[d].split("="), f = decodeURIComponent(c[0]);
			if (f == g) {
				b = c.length == 2 ? decodeURIComponent(c[1]) : f;
				break;
			}
		}
		return b;
	}
	catch (h) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Request", "QueryString", h.message);
	}
}}, URL:{UrlEncode:function (a) {
	try {
		return encodeURI(a);
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "UrlEncode", b.message);
	}
}, UrlEscape:function (a) {
	try {
		return escape(a);
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "UrlEscape", b.message);
	}
}, UrlEncodeURIComponent:function (a) {
	try {
		return encodeURIComponent(a);
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "UrlEncodeURIComponent", b.message);
	}
}, UrlDecode:function (a) {
	try {
		return decodeURI(a);
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "UrlDecode", b.message);
	}
}, HtmlEncode:function (a) {
	try {
		return a == null || a == "" ? "" : a.replace(new RegExp("&", "gm"), "&amp;").replace(new RegExp("\"", "gm"), "&quot;").replace(new RegExp("<", "gm"), "&lt;").replace(new RegExp(">", "gm"), "&gt;").replace(new RegExp("'", "gm"), "&#39;");
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "HtmlEncode", b.message);
	}
}, HtmlDecode:function (a) {
	try {
		return a == null || a == "" ? "" : a.replace(new RegExp("&amp;", "gm"), "&").replace(new RegExp("&quot;", "gm"), "\"").replace(new RegExp("&lt;", "gm"), "<").replace(new RegExp("&gt;", "gm"), ">").replace(new RegExp("&#39;", "gm"), "'");
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "HtmlDecode", b.message);
	}
}, TransferSQLSpecialChar:function (a) {
	try {
		return a == null || a == "" ? "" : a.replace(new RegExp(String.fromCharCode(6), "gm"), "?").replace(new RegExp(String.fromCharCode(5), "gm"), "_").replace(new RegExp(String.fromCharCode(1), "gm"), "%");
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.URL", "TransferSQLSpecialChar", b.message);
	}
}}, WinDialog:{OpenWindow:function (f, e, b, a) {
	try {
		var c = (screen.width - b) / 2, d = (screen.height - a) / 2;
		windowFeatures = "resizable=yes,width=" + b + ",height=" + a + ",left=" + c + ",top=" + d;
		return window.open(f, e, windowFeatures);
	}
	catch (g) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenWindow", g.message);
	}
}, OpenWindowWithScroll:function (f, e, b, a) {
	try {
		var c = (screen.width - b) / 2, d = (screen.height - a) / 2;
		windowFeatures = "resizable=yes,scrollbars=yes,width=" + b + ",height=" + a + ",left=" + c + ",top=" + d;
		return window.open(f, e, windowFeatures);
	}
	catch (g) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenWindowWithScroll", g.message);
	}
}, EscapeUrl:function (b) {
	try {
		var a = b.split("?");
		if (a.length == 2) {
			_path = a[0];
			_query = a[1];
			return _path + mergeUrlQuery("", _query);
		}
		return b;
	}
	catch (c) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "EscapeUrl", c.message);
	}
}, OpenInnerModalDialog:function (c, b, a) {
	try {
		return window.showModalDialog(this.EscapeUrl(c), b, a);
	}
	catch (d) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenInnerModalDialog", d.message);
	}
}, OpenModalDialog:function (d, a, c, b) {
	try {
		windowFeatures = "dialogwidth:" + c + "px;dialogheight:" + b + "px;help:no;scroll:no;status:no;";
		return window.showModalDialog(d, a, windowFeatures);
	}
	catch (e) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenModalDialog", e.message);
	}
}, OpenModuleWin:function (e, d, c, b) {
	try {
		var a = "";
		if (!b) {
			a = "scroll:no;";
		}
		windowFeatures = "dialogwidth:" + d + "px;dialogheight:" + c + "px;help:no;" + a + "status:no;";
		return window.showModalDialog(e, window, windowFeatures);
	}
	catch (f) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenModuleWin", f.message);
	}
}, OpenModuleFullWin:function (c) {
	try {
		var b = screen.width, a = screen.height;
		windowFeatures = "dialogwidth:" + b + "px;dialogheight:" + a + "px;help:no;scroll:no;status:no;";
		return window.showModalDialog(c, window, windowFeatures);
	}
	catch (d) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenModuleFullWin", d.message);
	}
}, OpenModuleFullWinForScroll:function (e, b) {
	try {
		var d = screen.width, c = screen.height, a = "";
		if (!b) {
			a = "scroll:no;";
		}
		windowFeatures = "dialogwidth:" + d + "px;dialogheight:" + c + "px;help:no;" + a + "status:no;";
		return window.showModalDialog(e, window, windowFeatures);
	}
	catch (f) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenModuleFullWinForScroll", f.message);
	}
}, OpenFullWin:function (c) {
	try {
		var b = screen.width - 10, a = screen.height - 10;
		return window.open(c, "", "resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=yes,dependent,width=" + b + ",height=" + a + ",left=0,top=0");
	}
	catch (d) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "OpenFullWin", d.message);
	}
}, CloseWin:function () {
	try {
		window.close();
	}
	catch (a) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "CloseWin", a.message);
	}
}, AlertMsg:function (a) {
	try {
		alert(a);
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "AlertMsg", b.message);
	}
}, ConfirmMsg:function (a) {
	try {
		return confirm(a);
	}
	catch (b) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.WinDialog", "ConfirmMsg", b.message);
	}
}}, DivDialog:{AlertSuccess:function () {
	try {
	}
	catch (c) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.DivDialog", "AlertSuccess", c.message);
	}
}, AlertError:function () {
	try {
	}
	catch (c) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.DivDialog", "AlertError", c.message);
	}
}, AlertWarn:function () {
	try {
	}
	catch (c) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.DivDialog", "AlertWarn", c.message);
	}
}}, Ajax:{CallAjax:function (c, a, b) {
	try {
		$.ajax({type:"GET", url:c, async:true, cache:false, success:a, error:b, timeout:50000});
	}
	catch (d) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Ajax", "CallAjax", d.message);
	}
}, CallAjaxResultJson:function (b, d, a, c) {
	try {
		$.ajax({type:"GET", url:b, async:true, cache:false, dataType:"json", success:d, error:function (d, f, e) {
			$.ZTE.Core.Logger.AjaxErrorLog(b, d, f, e, c);
			a && a.call(this, d, f, e);
		}, timeout:50000});
	}
	catch (e) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Ajax", "CallAjaxResultJson", e.message);
	}
}, CallDomainAjaxResultJson:function (a, b, c) {
	try {
		if (a.indexOf("?") < 0) {
			a = a + "?CallBack=?";
		} else {
			a = a + "&CallBack=?";
		}
		$.ajax({type:"GET", url:a, async:true, cache:false, dataType:"jsonp", jsonp:"jsonCallBack", success:b, error:c, timeout:50000});
	}
	catch (d) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Ajax", "CallDomainAjaxResultJson", d.message);
	}
}, CallAjaxPostData:function (e, c, d, a, b) {
	try {
		$.post(e, c, a, d).error(b);
	}
	catch (f) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Ajax", "CallAjaxPostData", f.message);
	}
}}, Logger:{ExceptionLog:function (a, b) {
	try {
		b && $.ZTE.Core.WinDialog.AlertMsg(a);
		$.ZTE.Core.Logger.WriteLog("E", "", "", a);
	}
	catch (c) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Logger", "ExceptionLog", c.message);
	}
}, FunctionExceptionLog:function (c, a, b) {
	try {
		$.ZTE.Core.Logger.WriteLog("FE", c, a, b);
	}
	catch (d) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Logger", "FunctionExceptionLog", d.message);
	}
}, AjaxErrorLog:function (e, a, d, g, c) {
	try {
		var h = a.readyState, f = a.status, i = a.statusText, b = $.ZTE.Core.StringUtil.StringFormat("Ajax\u8c03\u7528\uff1a{0}\u5f02\u5e38\uff0c\u5f02\u5e38\u72b6\u6001\u4e3a\uff1a{1}\uff0c\u5f02\u5e38\u4fe1\u606f\u4e3a\uff1a{2}", e, f, d);
		c && $.ZTE.Core.WinDialog.AlertMsg(b);
		$.ZTE.Core.Logger.WriteLog("AJAX", "", "", b);
	}
	catch (j) {
		$.ZTE.Core.Logger.FunctionExceptionLog("$.ZTE.Core.Logger", "AjaxErrorLog", j.message);
	}
}, WriteLog:function (c, e, a, d) {
	try {
		var b = "";
		$.ZTE.Core.LazyLoader.CustomLoadNottry("ZTE.JQuery.Logger.js", {js:[$.ZTE.Core.SiteHelp.GetSiteRoot() + "Scripts/Plugins/Core/ZTE.JQuery.Logger.js"]}, function () {
			$.ZTE.Logger.WriteLog(c, b, e, a, d);
		});
	}
	catch (f) {
	}
}}, StringUtil:{TrimValue:function (a) {
	return a == null || a == "" ? void 0 : a.length == 0 ? void 0 : a.replace(/(^\s*)|(\s*$)/g, "");
}, IsNullOrEmpty:function (a) {
	return $.ZTE.Core.StringUtil.TrimValue(a) == null || $.ZTE.Core.StringUtil.TrimValue(a) == "" || $.ZTE.Core.StringUtil.TrimValue(a).length == 0;
}, StringFormat:function (f, c) {
	if (arguments.length > 0) {
		var a = f;
		if (arguments.length == 1 && typeof c == "object") {
			for (var d in c) {
				var e = new RegExp("({" + d + "})", "g");
				a = a.replace(e, c[d]);
			}
		} else {
			for (var b = 1; b <= arguments.length; b++) {
				if (arguments[b] == undefined) {
					return a;
				} else {
					var g = b - 1, e = new RegExp("({[" + g + "]})", "g");
					a = a.replace(e, arguments[b]);
				}
			}
		}
		return a;
	} else {
		return this;
	}
}}, MouseUtil:{GetMouseXY:function () {
	var a = window.event;
	return a.pageX || a.pageY ? {x:a.pageX, y:a.pageY} : {x:a.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y:a.clientY + document.body.scrollTop + document.documentElement.scrollTop};
}}, RandomUtil:{GetCurrentTime:function () {
	var b = new Date, d = new String, c = new String, a = new String;
	c = b.getMinutes();
	a = d + b.getMilliseconds();
	return c + a;
}}, DateTimeUtil:{GetFullNowTime:function () {
	var a = new Date, b = $.ZTE.Core.DateTimeUtil.FormatTime(a.getMonth() + 1), d = $.ZTE.Core.DateTimeUtil.FormatTime(a.getDate()), c = $.ZTE.Core.DateTimeUtil.FormatTime(a.getHours()), e = $.ZTE.Core.DateTimeUtil.FormatTime(a.getMinutes()), f = $.ZTE.Core.DateTimeUtil.FormatTime(a.getSeconds());
	return a.getFullYear() + "-" + b + "-" + d + " " + c + ":" + e + ":" + f;
}, CompareDate:function (a, b) {
	try {
		var e = Date.parse(a.replace(/-/g, "/")), d = Date.parse(b.replace(/-/g, "/"));
		return e > d;
	}
	catch (f) {
		var c = $.ZTE.Core.StringUtil.StringFormat("\u5728\u6bd4\u8f83{0}\u548c{1}\u65e5\u671f\u7c7b\u578b\u65f6\u51fa\u9519\uff0c\u5177\u4f53\u9519\u8bef\u539f\u56e0\uff1a{2}", a, b, f);
		$.ZTE.Core.WinDialog.AlertMsg(c);
		return false;
	}
}, GetEnMonth:function (c) {
	var a = "Jan.";
	try {
		var b = parseInt(c);
		if (b == 1) {
			a = "Jan.";
		} else {
			if (b == 2) {
				a = "Feb.";
			} else {
				if (b == 3) {
					a = "Mar.";
				} else {
					if (b == 4) {
						a = "Apr.";
					} else {
						if (b == 5) {
							a = "May";
						} else {
							if (b == 6) {
								a = "Jun";
							} else {
								if (b == 7) {
									a = "Jul.";
								} else {
									if (b == 8) {
										a = "Aug.";
									} else {
										if (b == 9) {
											a = "Sept.";
										} else {
											if (b == 10) {
												a = "Oct.";
											} else {
												if (b == 11) {
													a = "Nov.";
												} else {
													if (b == 12) {
														a = "Dec.";
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	catch (d) {
	}
	return a;
}, FormatTime:function (a) {
	return a < 10 ? "0" + a : a;
}, Sleep:function (l) {
	var a, b = new Date, i, e, f, j, c, g, h, k, d;
	i = b.getHours();
	e = b.getMinutes();
	f = b.getSeconds();
	j = b.getMilliseconds();
	do {
		a = new Date;
		c = a.getHours() - i;
		g = a.getMinutes() - e;
		h = a.getSeconds() - f;
		k = a.getMilliseconds() - j;
		if (c < 0) {
			c += 24;
		}
		d = c * 3600 + g * 60 + h;
		d = d * 1000 + k;
	} while (d < l);
}, IsLeapYear:function (b) {
	var a = b;
	if (a === undefined || isNaN(a)) {
		a = this.getYear();
	}
	return 0 == a % 4 && (a % 100 != 0 || a % 400 == 0);
}, DateAdd:function (e, d, c) {
	var a = Date.parse(e);
	if (a === undefined || isNaN(a)) {
		a = new Date;
	}
	var b = "";
	switch (d) {
	  case "s":
		b = new Date(a.getTime() + 1000 * c);
		break;
	  case "n":
		b = new Date(a.getTime() + 60000 * c);
		break;
	  case "h":
		b = new Date(a.getTime() + 3600000 * c);
		break;
	  case "d":
		b = new Date(a.getTime() + 86400000 * c);
		break;
	  case "w":
		b = new Date(a.getTime() + 86400000 * 7 * c);
		break;
	  case "q":
		b = new Date(a.getFullYear(), a.getMonth() + c * 3, a.getDate(), a.getHours(), a.getMinutes(), a.getSeconds());
		break;
	  case "m":
		b = new Date(a.getFullYear(), a.getMonth() + c, a.getDate(), a.getHours(), a.getMinutes(), a.getSeconds());
		break;
	  case "y":
		b = new Date(a.getFullYear() + c, a.getMonth(), a.getDate(), a.getHours(), a.getMinutes(), a.getSeconds());
	}
	return b.toString();
}}, Cookies:{GetCookies:function (a) {
	var c = null;
	if (document.cookie && document.cookie != "") {
		for (var d = document.cookie.split(";"), b = 0; b < d.length; b++) {
			var e = jQuery.trim(d[b]);
			if (e.substring(0, a.length + 1) == a + "=") {
				c = decodeURIComponent(e.substring(a.length + 1));
				break;
			}
		}
	}
	return c;
}, WriteCookies:function (h, c, a) {
	a = a || {};
	if (c === null) {
		c = "";
		a = $.extend({}, a);
		a.expires = -1;
	}
	var d = "";
	if (a.expires && (typeof a.expires == "number" || a.expires.toUTCString)) {
		var b;
		if (typeof a.expires == "number") {
			b = new Date;
			b.setTime(b.getTime() + a.expires * 24 * 60 * 60 * 1000);
		} else {
			b = a.expires;
		}
		d = "; expires=" + b.toUTCString();
	}
	var g = a.path ? "; path=" + a.path : "", e = a.domain ? "; domain=" + a.domain : "", f = a.secure ? "; secure" : "";
	document.cookie = [h, "=", encodeURIComponent(c), d, g, e, f].join("");
}, DelCookie:function (b) {
	var c = "", a = "";
	if ($.ZTE.Core.Cookies.GetCookies(b, "")) {
		document.cookie = b + "=" + (c ? "; path=" + c : "") + (a ? "; domain=" + a : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}}, LazyLoader:{LoadSynHeighlighterScript:function (d, b) {
	var e = d + "Scripts/syntaxhighlighter/", a = e + "scripts/", f = "../Scripts/syntaxhighlighter/styles/", c = {js:[a + "shCore.js", a + "shBrushBash.js", a + "shBrushJScript.js", a + "shBrushXml.js"]};
	$.ZTE.Core.LazyLoader.CustomLoad("SynHeight", c, b);
}, CustomLoad:function (c, a, d) {
	try {
		var b = css = img = [];
		b = a.js;
		css = a.css;
		img = a.image;
		$.xLazyLoader({name:c, image:img, js:b, css:css, load:d});
	}
	catch (f) {
		var e = $.ZTE.Core.StringUtil.StringFormat("\u4f7f\u7528LazyLoader\u7684CustomLoad\u65b9\u6cd5\u51fa\u9519\uff0c\u5177\u4f53\u539f\u56e0:{0}", f);
		$.ZTE.Core.Logger.ExceptionLog(e, false);
	}
}, CustomLoadNottry:function (c, a, d) {
	var b = css = img = [];
	b = a.js;
	css = a.css;
	img = a.image;
	$.xLazyLoader({name:c, image:img, js:b, css:css, load:d});
}}, SiteHelp:{GetSiteRoot:function () {
	var a = $(document.body).attr("rel");
	return a ? a : "/";
}}};
$.extend({}, $.ZTE, $.ZTE.Core, $.ZTE.Base, $.ZTE.Logger);
(function (a) {
	a.xLazyLoader = function (a, c) {
		if (typeof a == "object") {
			c = a;
			a = "load";
		}
		b[a](c);
	};
	var b = new function () {
		var b = document.getElementsByTagName("head")[0];
		this.load = function (f) {
			var b = {js:[], css:[], image:[], name:null, load:function () {
			}};
			a.extend(b, f);
			var g = this, h = false, c = {js:[], css:[], image:[]};
			d("js", b.js);
			d("css", b.css);
			d("image", b.image);
			function d(c, b) {
				if (a.isArray(b) && b.length > 0) {
					a.each(b, function (b, a) {
						e(c, a);
					});
				} else {
					typeof b == "string" && e(c, b);
				}
			}
			function e(d, e) {
				g[d](e, function () {
					a.isArray(b[d]) ? c[d].push(e) : (c[d] = e);
					b.js.length == c.js.length && b.css.length == c.css.length && b.image.length == c.image.length && b.load.apply(c, []);
					return;
				}, b.name ? "lazy-loaded-" + b.name : "lazy-loaded-" + (new Date).getTime());
			}
		};
		this.js = function (e, d, f) {
			if (a("script[src*=\"" + e + "\"]").length > 0) {
				d();
				return;
			}
			var c = document.createElement("script");
			c.setAttribute("type", "text/javascript");
			c.setAttribute("src", e);
			c.setAttribute("id", f);
			if (a.browser.msie) {
				c.onreadystatechange = function () {
					/loaded|complete/.test(c.readyState) && d();
				};
			} else {
				c.onload = d;
			}
			b.appendChild(c);
		};
		this.css = function (e, d, f) {
			if (a("link[href*=\"" + e + "\"]").length > 0) {
				d();
				return;
			}
			var c = a("<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"" + e + "\" id=\"" + f + "\"></link>")[0];
			if (a.browser.msie) {
				c.onreadystatechange = function () {
					/loaded|complete/.test(c.readyState) && d();
				};
			} else {
				if (a.browser.opera) {
					c.onload = d;
				} else {
					(function () {
						try {
							c.sheet.cssRule;
						}
						catch (a) {
							setTimeout(arguments.callee, 20);
							return;
						}
						d();
					})();
				}
			}
			b.appendChild(c);
		};
		this.image = function (c, b) {
			var a = new Image;
			a.onload = b;
			a.src = c;
		};
		this.disable = function (c) {
			a("#lazy-loaded-" + c, b).attr("disabled", "disabled");
		};
		this.enable = function (c) {
			a("#lazy-loaded-" + c, b).removeAttr("disabled");
		};
		this.destroy = function (c) {
			a("#lazy-loaded-" + c, b).remove();
		};
	};
})(jQuery);

